import request from '@/utils/request';

/**
 * 租户列表
 */
export async function getTenantList(params) {
  const res = await request.post('/tenant/getList', params);
  if (res.data.code === 20000) {
    return res.data.data;
  }
  return Promise.reject(new Error(res.data.data));
}
